home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / wb / backclock / install < prev    next >
Text File  |  1999-06-15  |  4KB  |  140 lines

  1. ;/* install script version 1.1
  2. ; * $VER: BCInstall 1.3 (05-06-99)
  3. ; */
  4.  
  5.  
  6. (set #inst_text "BackClock Installation on Hard Disk")
  7. (set #prog "backclock")
  8. (set #notlib "libs:notityintuition.library")
  9. (set #rtlib  "libs:rtracker.library")
  10. (set @minuser "Intermediate")
  11. (set @appname "BackClock")
  12. (set #gosrc      1)
  13. (set #gobootup   1)
  14. (set #defpathprefs "sys:prefs/")
  15.  
  16.  
  17. (set #destdir_prompt "Where do you want to install BackClock\nA drawer will be created.")
  18. (set #destdirprefs   "Where do you want to install BackClock preferences.")
  19.  
  20. (set #destdir (askdir
  21.     (prompt #destdir_prompt)
  22.     (help @askdir-help)
  23.     (default "Work:")
  24.   )
  25. )
  26.  
  27. (set @default-dest (tackon #destdir "BackClock"))
  28. (if (not (exists (@default-dest)))
  29.   (makedir @default-dest (infos))
  30. )
  31.  
  32. (if (< (getversion #notlib) 131072)
  33.      (message  "\nnotifyintuition.library too old. Do you want to continue the installation? Notifyintuition.library can be found on Aminet in the directory /util/wb/clvrwin.lha"
  34.        (help "notifyintution.library must be version 2.0 so go and get it right now!!!")
  35.      )
  36. )
  37.  
  38. (copylib
  39.   (prompt "You need version 1.0 of rtracker.library")
  40.   (help   "This library will be automatically copied to LIBS:")
  41.   (confirm)
  42.   (source "libs/rtracker.library")
  43.   (dest    "LIBS:")
  44. )
  45.  
  46.  
  47. (if (>= @user-level 1)
  48.   (set #gobootup
  49.     (askbool
  50.       (prompt "Do you want to run BackClock each startup ?")
  51.       (help   "If you answer yes, then BackClock will be copied to SYS:WBStartup.")
  52.     )
  53.   )
  54. )
  55.  
  56. (set #sourcepath @default-dest)
  57.  
  58. (if (>= @user-level 1)
  59.   (set #defpathprefs (askdir
  60.     (prompt #destdirprefs)
  61.     (help   "Please choose where to place the preferences utility.")
  62.     (default #defpathprefs)
  63.     )
  64.   )
  65. )
  66. (if (>= @user-level 1)
  67.   (if (askbool
  68.         (prompt "Do you want to install sources ?")
  69.         (help   "This will install the sources of the program in the directory sources./")
  70.       )
  71.       (
  72.         ;install sources
  73.         (set #gosrc 1)
  74.         (if (= 2 @user-level)
  75.           (
  76.             (set #sourcepath (askdir
  77.                 (prompt "Where do you want to install sources codes ?\nA drawer called sources will be created there.")
  78.                 (help   "You have to choose where the sources be placed.")
  79.                 (default @default-dest)
  80.               )
  81.             )
  82.           )
  83.         )
  84.       )
  85.       ; don't install sources
  86.       (set #gosrc 0)
  87.   )
  88. )
  89.  
  90. (if (= 1 #gosrc)
  91.   ((if (not (exists (tackon #sourcepath "sources")))
  92.                (makedir (tackon #sourcepath "sources"))
  93.             )
  94.   )
  95. )
  96.  
  97. (copyfiles
  98.   (prompt "Copying Main file")
  99.   (help   "Copy the executable and the icon of the main file in the path you choosed")
  100.   (source "bin/")
  101.   (dest   @default-dest)
  102.   (all)
  103. )
  104. (copyfiles
  105.   (prompt "Copying preferences program")
  106.   (help   "Copy the preferences executable and the icon file in the path you choosed")
  107.   (source "prefs/")
  108.   (dest   #defpathprefs)
  109.   (all)
  110. )
  111.  
  112. (copyfiles
  113.   (prompt "Cpying documentation")
  114.   (help   "Copy the documentation in the path you choosed")
  115.   (source "docs/backclock.guide")
  116.   (dest   @default-dest)
  117.   (infos)
  118. )
  119.  
  120. (if (= 1 #gobootup)
  121.   (copyfiles
  122.     (prompt "Copying to WBStartup")
  123.     (help   "Copy the executable file to wbstartup\nThis will run BackClock each reboot.")
  124.     (source "bin/backclock")
  125.     (dest   "SYS:WBstartup/")
  126.     (infos)
  127.   )
  128. )
  129.  
  130. (if (= 1 #gosrc)
  131.   (copyfiles
  132.     (prompt "Copying sources")
  133.     (help   "Copy the sources in C in the the path you choosed")
  134.     (source "sources/")
  135.     (dest   (tackon #sourcepath "sources"))
  136.     (all)
  137.   )
  138. )
  139.  
  140.